import {createRouter, createWebHashHistory} from 'vue-router'


// 引入登录页
const Login = ()=> import("../views/Login.vue")
//引入用户中心页
const Index = ()=> import("../views/user-center/Index.vue")

const routes = [
    {
        path:'/',
        component: Login
    },
    {
        path:'/Index',
        component: Index
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router